<template>
	<view class="all-main">
		<view class="main">
			<!-- 受益人信息 -->
			<view v-if="merchant.busType != 4" class="legal-person">
				<view class="titles">
					<text>受益人信息</text>
					<u-icon name="question-circle" color="#f2873a" size="20" @click="custNameShow = true"></u-icon>
				</view>
				<view class="form-items">
					<view class="lefts">
						<text>受益人类型</text>
					</view>
					<view class="rights" @click="beneficiarTypeShow = true">
						<text>{{merchant.beneficiarTypeText}}</text>
						<u-icon name="arrow-right" size="15"></u-icon>
					</view>
				</view>
				<view v-if="merchant.beneficiarType == '03'" class="form-items">
					<view class="lefts">
						<text>证书类型</text>
					</view>
					<view class="rights" @click="certificateTypeShow = true">
						<text>{{merchant.beneficiarCertTypeText}}</text>
						<u-icon name="arrow-right" size="15"></u-icon>
					</view>
				</view>
				<view v-if="merchant.beneficiarType == '03'" class="certificate">
					<view class="certificate-lefts">
						<view class="certificate-images" @click="imageClick(1)">
							<image id="img1" :src="image1" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>受益人证件正面</text>
						</view>
					</view>
					<view class="certificate-rights">
						<view class="certificate-images" @click="imageClick(2)">
							<image id="img2" :src="image2" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>受益人证件反面</text>
						</view>
					</view>
				</view>
				<view v-if="merchant.beneficiarType == '03'" class="form-items">
					<view class="lefts">
						<text>受益人姓名</text>
					</view>
					<view class="rights">
						<input type="text" v-model="merchant.beneficiarName" placeholder="请与证件一致" />
					</view>
				</view>
				<view v-if="merchant.beneficiarType == '03'" class="form-items">
					<view class="lefts">
						<text>职务</text>
					</view>
					<view class="rights">
						<input type="text" v-model="merchant.beneficiarStaff" placeholder="请输入职务" />
					</view>
				</view>
				<view v-if="merchant.beneficiarType == '03'" class="form-items">
					<view class="lefts">
						<text>持股比例(%)</text>
					</view>
					<view class="rights">
						<input type="text" v-model="merchant.beneficiarPercent" placeholder="请输入持股比例" />
					</view>
				</view>
				<view v-if="merchant.beneficiarType == '03'" class="form-items">
					<view class="lefts">
						<text>受益人证件号</text>
					</view>
					<view class="rights">
						<input type="text" v-model="merchant.beneficiarCredNo" placeholder="请与证件一致" />
					</view>
				</view>
				<view v-if="merchant.beneficiarType == '03'" class="form-items">
					<view class="lefts">
						<text>证件地址</text>
					</view>
					<view class="rights">
						<input type="text" v-model="merchant.beneficiarAddr" placeholder="请与证件一致" />
					</view>
				</view>
				<view v-if="merchant.beneficiarType == '03'" class="form-items">
					<view class="lefts">
						<text>证件有效期</text>
					</view>
					<view class="rights" @click="credValidity">
						<text>{{merchant.beneficiarText}}</text>
						<u-icon name="arrow-right" size="15"></u-icon>
					</view>
				</view>
			</view>
			<!-- 经营场所照片 -->
			<view class="legal-person">
				<view class="titles">
					<text>经营场所照片</text>
				</view>
				<view class="certificate">
					<view class="certificate-lefts">
						<view class="certificate-images" @click="imageClick(3)">
							<image id="img3" :src="image3" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>经营场所门头照</text>
						</view>
					</view>
					<view class="certificate-rights">
						<view class="certificate-images" @click="imageClick(4)">
							<image id="img4" :src="image4" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>经营场所店内照</text>
						</view>
					</view>
				</view>
				<view class="certificate">
					<view class="certificate-lefts">
						<view class="certificate-images" @click="imageClick(5)">
							<image id="img5" :src="image5" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>收银台照</text>
						</view>
					</view>
				</view>
			</view>
			<!-- 补充材料 -->
			<view class="legal-person">
				<view class="titles">
					<text>补充材料</text>
					<text class="title-msg">(最多可上传4张图片)</text>
				</view>
				<view class="certificate-list">
					<view v-if="img6Show" class="certificate-item">
						<view class="certificate-images" @click="imageClick(6)">
							<image id="img6" :src="image6" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>补充材料{{ this.merchant.filed1 == null ? '' : ' - 1' }}</text>
						</view>
					</view>
					<view v-if="img7Show" class="certificate-item">
						<view class="certificate-images" @click="imageClick(7)">
							<image id="img7" :src="image7" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>补充材料{{ this.merchant.filed2 == null ? '' : ' - 2' }}</text>
						</view>
					</view>
					<view v-if="img8Show" class="certificate-item">
						<view class="certificate-images" @click="imageClick(8)">
							<image id="img8" :src="image8" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>补充材料{{ this.merchant.filed3 == null ? '' : ' - 3' }}</text>
						</view>
					</view>
					<view v-if="img9Show" class="certificate-item">
						<view class="certificate-images" @click="imageClick(9)">
							<image id="img9" :src="image9" mode=""></image>
						</view>
						<view class="certificate-title">
							<text>补充材料{{ this.merchant.filed5 == null ? '' : ' - 4' }}</text>
						</view>
					</view>
				</view>
			</view>
			<view class="occupy_position"></view>
			<view v-if="merchant.custId == '' || merchant.custId == null" class="bottom-btn">
				<view class="btn-left" @click="saveData(2)">
					<text>暂存</text>
				</view>
				<view class="btn-right" @click="saveData(1)">
					<text>下一步</text>
				</view>
			</view>
			<view v-else class="bottom-btn">
				<view class="btns" @click="saveData(1)">
					<text>下一步</text>
				</view>
			</view>
			<!-- 插件 -->
			<u-modal :show="custNameShow" :title="custNameTitle" @confirm="custNameShow = false">
				<view class="slot-content">
					<rich-text :nodes="custNameContent"></rich-text>
				</view>
			</u-modal>
			<u-picker :show="beneficiarTypeShow" :columns="beneficiarTypeList" keyName="label"
				:closeOnClickOverlay="true" @confirm="beneficiarTypeConfirm" @close="beneficiarTypeShow = false"
				@cancel="beneficiarTypeShow = false"></u-picker>
			<u-picker :show="certificateTypeShow" :columns="certificateTypeList" keyName="label"
				:closeOnClickOverlay="true" @confirm="certificateTypeConfirm" @close="certificateTypeShow = false"
				@cancel="certificateTypeShow = false"></u-picker>
			<u-datetime-picker :show="beneficiarShowA" title="开始时间" :minDate="-788950800000"
				v-model="startDate" :maxDate="4260182400000" mode="date" :closeOnClickOverlay="true"
				@confirm='startDateConfirm' @close="beneficiarShowA = false"
				@cancel="beneficiarShowA = false"></u-datetime-picker>
			<u-datetime-picker :show="beneficiarShowB" title="截止时间" :minDate="-788950800000"
				v-model="endDate" :maxDate="4260182400000" mode="date" :closeOnClickOverlay="true"
				@confirm='endDateConfirm' @close="beneficiarShowB = false"
				@cancel="beneficiarShowB = false"></u-datetime-picker>
			<u-popup :show="image_show" @close="image_show = false">
				<view class="images_box">
					<view class="image_box">
						<text class="" @click="_picture">拍照</text>
						<text class="" @click="_getFile">手机相册选择</text>
					</view>
					<text @click.stop="image_show = false">取消</text>
				</view>
			</u-popup>
		</view>
	</view>
</template>

<script>
	var util = require('@/util/request.js');
	import {
		pathToBase64,
		base64ToPath
	} from '@/js_sdk/mmmm-image-tools/index.js'
	export default {
		data() {
			return {
				image1: '/static/idcard_b.png',
				image2: '/static/idcard_a.png',
				image3: '/static/storefront.png',
				image4: '/static/in_store.png',
				image5: '/static/checkstand.png',
				image6: '/static/materials.png',
				image7: '/static/materials.png',
				image8: '/static/materials.png',
				image9: '/static/materials.png',
				img6Show: true,
				img7Show: false,
				img8Show: false,
				img9Show: false,
				beneficiarTypeShow: false,
				beneficiarTypeList: [],
				certificateTypeShow: false,
				certificateTypeList: [],
				custNameShow: false,
				custNameTitle: '',
				custNameContent: '',
				beneficiarShowA: false,
				beneficiarShowB: false,
				startDate: '',
				endDate: '',
				image_show: false,
				flag: '',
				merchant: {
					id: '',
					pageSize: 3,
					beneficiarType: '', // 受益人类别
					beneficiarTypeText: '', // 受益人类别名称
					beneficiarName: '', // 受益人姓名
					beneficiarStaff: '', // 受益人职务
					beneficiarPercent: '', // 受益人持股比例
					beneficiarCredNo: '', // 受益人证件号码
					beneficiarCertType: 0, // 受益人证件类型
					beneficiarCertTypeText: '身份证', // 受益人证件类型名称
					beneficiarAddr: '', // 受益人证件地址
					beneficiarStartTime: '', // 受益人证件开始时间
					beneficiarEndTime: '', // 受益人证件结束时间
					beneficiarText: '', // 受益人证件有效期
				}
			}
		},
		onLoad(e) {
			this.merchant.id = e.id
			this.getAccountType()
			this.getCustNameMsg()
			this.getCertificateType()
			this.startDate = Number(new Date())
			this.endDate = Number(new Date())
		},
		methods: {
			// 获取商户进件信息
			async getMerchantEntry() {
				uni.showLoading({
					title: '加载中'
				});
				const {
					data: res
				} = await this.$myHttp({
					url: 'v1/getMerchantEntry',
					data: {
						id: this.merchant.id
					}
				});
				uni.hideLoading()
				if (res.code == 200) {
					this.merchant = res.data
					if (res.data.beneficiarType == null || res.data.beneficiarType == '') {
						this.merchant.beneficiarType = '02'
						this.merchant.beneficiarTypeText = '法人'
					}
					if (res.data.beneficiarCertType == null || res.data.beneficiarCertType == '') {
						this.merchant.beneficiarCertType = 0
						this.merchant.beneficiarCertTypeText = '身份证'
					}
					if (res.data.beneficiarText == null) {
						this.merchant.beneficiarText = '请选择'
					}
					if (res.data.beneficiarStaff == null) {
						this.merchant.beneficiarStaff = '董事'
					}
					if (res.data.beneficiarPercent == null) {
						this.merchant.beneficiarPercent = '100'
					}
					this.merchant.pageSize = 3
					if (this.merchant.images == null) {
						this.merchant.images = {
							beneficiarCredFront: '', // 受益人证件正面
							beneficiarCredBack: '', // 受益人证件反面
							doorHeaderPhoto: '', // 经营场所门头照
							indoorScenesPhoto: '', // 经营场所店内照
							cashierPhoto: '', // 收银台照
							filed1: '', // 补充材料(1)
							filed2: '', // 补充材料(2)
							filed2: '', // 补充材料(3)
							filed2: '', // 补充材料(5)
						}
					}
					if (this.merchant.images != null) {
						if (this.merchant.images.beneficiarCredFront != null) {
							this.image1 = util.API_URL + this.merchant.images.beneficiarCredFront
						}
						if (this.merchant.images.beneficiarCredBack != null) {
							this.image2 = util.API_URL + this.merchant.images.beneficiarCredBack
						}
						if (this.merchant.images.doorHeaderPhoto != null) {
							this.image3 = util.API_URL + this.merchant.images.doorHeaderPhoto
						}
						if (this.merchant.images.indoorScenesPhoto != null) {
							this.image4 = util.API_URL + this.merchant.images.indoorScenesPhoto
						}
						if (this.merchant.images.cashierPhoto != null) {
							this.image5 = util.API_URL + this.merchant.images.cashierPhoto
						}
						if (this.merchant.images.filed1 != null) {
							this.image6 = util.API_URL + this.merchant.images.filed1
							this.img7Show = true
						}
						if (this.merchant.images.filed2 != null) {
							this.image7 = util.API_URL + this.merchant.images.filed2
							this.img8Show = true
						}
						if (this.merchant.images.filed3 != null) {
							this.image8 = util.API_URL + this.merchant.images.filed3
							this.img9Show = true
						}
						if (this.merchant.images.filed5 != null) {
							this.image9 = util.API_URL + this.merchant.images.filed5
						}
					}
				}
			},
			// 获取受益人类型
			async getAccountType() {
				uni.showLoading({
					title: '加载中'
				});
				const {
					data: res
				} = await this.$myHttp({
					url: 'v1/getSettlementType',
					data: {
						type: 2
					}
				});
				uni.hideLoading()
				if (res.code == 200) {
					this.beneficiarTypeList = [res.data]
					this.merchant.beneficiarType = res.data[0].id
					this.merchant.beneficiarTypeText = res.data[0].label
					this.getMerchantEntry()
				}
			},
			// 获取受益人信息 - 描述
			async getCustNameMsg() {
				uni.showLoading({
					title: '加载中'
				});
				const {
					data: res
				} = await this.$myHttp({
					url: 'v1/getCustNameMsg',
					data: {
						type: 2
					}
				});
				uni.hideLoading()
				if (res.code == 200) {
					this.custNameTitle = res.data.title
					this.custNameContent = res.data.content
				}
			},
			// 获取证书类型
			async getCertificateType() {
				uni.showLoading({
					title: '加载中'
				});
				const {
					data: res
				} = await this.$myHttp({
					url: 'v1/getCertificateType'
				});
				uni.hideLoading()
				if (res.code == 200) {
					this.certificateTypeList = [res.data]
					this.merchant.beneficiarCertType = res.data[0].id
					this.merchant.beneficiarCertTypeText = res.data[0].label
				}
			},
			// 选择受益人类型
			beneficiarTypeConfirm(e) {
				this.merchant.beneficiarType = e.value[0].id
				this.merchant.beneficiarTypeText = e.value[0].label
				this.beneficiarTypeShow = false
			},
			// 选择证书类型
			certificateTypeConfirm(e) {
				this.merchant.beneficiarCertType = e.value[0].id
				this.merchant.beneficiarCertTypeText = e.value[0].label
				this.certificateTypeShow = false
			},
			// 证件有效期点击
			credValidity() {
				this.startDate = Number(new Date())
				this.endDate = Number(new Date())
				this.beneficiarShowA = true
			},
			// 证书有效时间 - 开始时间选择
			startDateConfirm(e) {
				this.merchant.beneficiarStartTime = e.value
				this.beneficiarShowA = false
				this.beneficiarShowB = true
			},
			// 证书有效时间 - 截止时间选择
			endDateConfirm(e) {
				const timeFormat = uni.$u.timeFormat
				this.merchant.beneficiarEndTime = e.value
				this.merchant.beneficiarText = timeFormat(this.merchant.beneficiarStartTime, 'yyyy-mm-dd') +
					' 至 ' + timeFormat(e.value, 'yyyy-mm-dd')
				this.beneficiarShowB = false
			},
			// 文件上传 - 点击
			imageClick(type) {
				if (type == 1) {
					this.flag = 33
				}
				if (type == 2) {
					this.flag = 34
				}
				if (type == 3) {
					this.flag = 4
				}
				if (type == 4) {
					this.flag = 5
				}
				if (type == 5) {
					this.flag = 18
				}
				if (type == 6) {
					this.flag = 6
				}
				if (type == 7) {
					this.flag = 7
				}
				if (type == 8) {
					this.flag = 7
				}
				if (type == 9) {
					this.flag = 10
				}
				this.image_types = type
				this.image_show = true
			},
			// 拍照
			_getFile() {
				let _this = this
				uni.chooseImage({
					count: 1, //默认9
					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album'], //从相册选择
					success: function(res) {
						pathToBase64(res.tempFilePaths[0])
							.then(base64 => {
								_this.uploadFile(base64)
								_this.image_show = false
							})
							.catch(error => {})
					}
				});
			},
			// 手机相册
			_picture() {
				let _this = this
				uni.chooseImage({
					count: 1, //默认9
					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					sourceType: ['camera'], //从相机选择
					success: function(res) {
						pathToBase64(res.tempFilePaths[0])
							.then(base64 => {
								_this.uploadFile(base64)
								_this.image_show = false
							})
							.catch(error => {})
					}
				});
			},
			// 上传图片
			async uploadFile(base) {
				uni.showLoading({
					title: '上传中'
				});
				const {
					data: res
				} = await this.$myHttp({
					url: 'common/gtUploadFile',
					data: {
						file: base,
						type: this.image_types,
						flag: this.flag,
						timestamp: this.merchant.timestamp,
						custLogin: this.merchant.custLogin,
						custId: this.merchant.custId
					}
				});
				uni.hideLoading()
				if (res.code == 200) {
					this.merchant.timestamp = res.data.timestamp
					if (this.image_types == 1) {
						this.image1 = base
						this.merchant.images.beneficiarCredFront = res.data.url
					} else if (this.image_types == 2) {
						this.image2 = base
						this.merchant.images.beneficiarCredBack = res.data.url
					} else if (this.image_types == 3) {
						this.image3 = base
						this.merchant.images.doorHeaderPhoto = res.data.url
					} else if (this.image_types == 4) {
						this.image4 = base
						this.merchant.images.indoorScenesPhoto = res.data.url
					} else if (this.image_types == 5) {
						this.image5 = base
						this.merchant.images.cashierPhoto = res.data.url
					} else if (this.image_types == 6) {
						this.image6 = base
						this.merchant.images.filed1 = res.data.url
						this.img7Show = true
					} else if (this.image_types == 7) {
						this.image7 = base
						this.merchant.images.filed2 = res.data.url
						this.img8Show = true
					} else if (this.image_types == 8) {
						this.image8 = base
						this.merchant.images.filed3 = res.data.url
						this.img9Show = true
					} else if (this.image_types == 9) {
						this.image9 = base
						this.merchant.images.filed5 = res.data.url
					}
				} else {
					uni.showToast({
						title: res.msg,
						icon: 'none',
						duration: 3000
					})
				}
			},
			// 保存数据
			saveData(type) {
				var _this = this
				var msg = ''
				this.merchant.saveType = type
				if (this.merchant.busType != 4 && this.merchant.beneficiarType == '03') {
					if (this.merchant.images.beneficiarCredFront == null) {
						uni.showToast({
							title: '请上传受益人证件正面',
							icon: 'none',
							duration: 3000
						})
						return false
					}
					if (this.merchant.images.beneficiarCredBack == null) {
						uni.showToast({
							title: '请上传受益人证件反面',
							icon: 'none',
							duration: 3000
						})
						return false
					}
					if (this.merchant.beneficiarName == '' || this.merchant.beneficiarName == null) {
						uni.showToast({
							title: '请输入受益人姓名',
							icon: 'none',
							duration: 3000
						})
						return false
					}
					if (this.merchant.beneficiarStaff == '' || this.merchant.beneficiarStaff == null) {
						uni.showToast({
							title: '请输入受益人职务',
							icon: 'none',
							duration: 3000
						})
						return false
					}
					if (this.merchant.beneficiarPercent == '' || this.merchant.beneficiarPercent == null) {
						uni.showToast({
							title: '请输入受益人持股比例',
							icon: 'none',
							duration: 3000
						})
						return false
					}
					if (this.merchant.beneficiarCredNo == '' || this.merchant.beneficiarCredNo == null) {
						uni.showToast({
							title: '请输入受益人证件号码',
							icon: 'none',
							duration: 3000
						})
						return false
					}
					if (this.merchant.beneficiarAddr == '' || this.merchant.beneficiarAddr == null) {
						uni.showToast({
							title: '请输入受益人证件地址',
							icon: 'none',
							duration: 3000
						})
						return false
					}
					if (this.merchant.beneficiarText == '请选择') {
						uni.showToast({
							title: '请选择受益人证件有效期',
							icon: 'none',
							duration: 3000
						})
						return false
					}
				}
				if (this.merchant.images.doorHeaderPhoto == null) {
					uni.showToast({
						title: '请上传经营场所门头照',
						icon: 'none',
						duration: 3000
					})
					return false
				}
				if (this.merchant.images.indoorScenesPhoto == null) {
					uni.showToast({
						title: '请上传经营场所店内照',
						icon: 'none',
						duration: 3000
					})
					return false
				}
				if (this.merchant.images.cashierPhoto == null) {
					uni.showToast({
						title: '请上传收银台照',
						icon: 'none',
						duration: 3000
					})
					return false
				}
				if (type == 2) {
					msg = '是否要选择暂存当前信息？'
				} else {
					msg = '是否确认当前信息，进行下一步？'
				}
				uni.showModal({
					content: msg,
					success: (res) => {
						if (res.confirm) {
							_this.saveDataFun()
						}
					}
				})
			},
			// 提交数据
			async saveDataFun() {
				uni.showLoading({
					title: '加载中'
				});
				const {
					data: res
				} = await this.$myHttp({
					url: 'v1/merchantEntry',
					data: this.merchant,
				});
				uni.hideLoading()
				if (res.code == 200) {
					if (this.merchant.saveType == 2) {
						uni.reLaunch({
							url: '/pages/index/guotong/lists'
						});
					} else {
						if (this.merchant.custId != '' && this.merchant.custId != null) {
							uni.navigateTo({
								url: '/pages/index/guotong/success'
							})
						} else {
							uni.navigateTo({
								url: '/pages/index/guotong/rateInfo?id=' + this.merchant.id
							})
						}
					}
				} else {
					uni.showToast({
						title: res.msg,
						icon: 'none',
						duration: 3000
					})
				}
			},
		}
	}
</script>

<style lang="scss">
	.all-main {
		.main {
			padding: 30rpx;

			.legal-person {
				background-color: #ffffff;
				border-radius: 16rpx;
				margin-bottom: 30rpx;

				.titles {
					display: flex;
					align-items: center;
					padding: 30rpx;
					font-weight: bold;
					border-bottom: 1px solid #f4f4f5;

					text {
						padding-right: 16rpx;
					}
					
					.title-msg {
						font-size: 24rpx;
						color: #909399;
					}
				}

				.form-items {
					display: flex;
					justify-content: space-between;
					padding: 30rpx;
					border-bottom: 1px solid #f4f4f5;

					.rights {
						display: flex;
						color: #909399;
						width: 60%;
						justify-content: flex-end;
						align-items: center;

						input {
							text-align: right;
							font-size: 28rpx;
						}

						.inputs {
							margin-right: 10rpx;
						}

						text {
							padding-right: 10rpx;
							color: #909399;
							font-size: 28rpx;
						}
					}
				}

				.certificate-one {
					padding: 20rpx 0;

					.certificate-images {
						text-align: center;
						position: relative;

						image {
							padding: 20rpx 30rpx;
							border: 2px solid #f4f4f5;
							border-radius: 16rpx;
							width: 95px;
							height: 60px;
						}
					}

					.certificate-title {
						color: #909399;
						text-align: center;
						font-size: 28rpx;

						.looks {
							color: #f2873a;
						}
					}
				}

				.certificate {
					display: flex;
					justify-content: space-between;

					.certificate-lefts {
						width: 50%;
						padding: 20rpx 0;
					}

					.certificate-rights {
						width: 50%;
						padding: 20rpx 0;
					}

					.certificate-images {
						text-align: center;
						position: relative;

						image {
							padding: 20rpx 30rpx;
							border: 2px solid #f4f4f5;
							border-radius: 16rpx;
							width: 95px;
							height: 60px;
						}
					}

					.certificate-title {
						color: #909399;
						text-align: center;
						font-size: 28rpx;

						.looks {
							color: #f2873a;
						}
					}
				}
				
				.certificate-list {
					padding: 20rpx 0;
					display: flex;
					flex-wrap: wrap;
					
					.certificate-item {
						width: 50%;
						text-align: center;
						
						.certificate-images {
							text-align: center;
							position: relative;
							
							image {
								padding: 20rpx 30rpx;
								border: 2px solid #f4f4f5;
								border-radius: 16rpx;
								width: 95px;
								height: 60px;
							}
						}
										
						.certificate-title {
							color: #909399;
							text-align: center;
							font-size: 28rpx;
										
							.looks {
								color: #f2873a;
							}
						}
					}
				}
			}
			
			.occupy_position {
				height: 110rpx;
			}
			
			.bottom-btn {
				position: fixed;
				left: 0;
				right: 0;
				bottom: 0;
				padding: 30rpx;
				background-color: #ffffff;
				display: flex;
				justify-content: space-between;
			
				.btn-left {
					width: 48%;
					height: 80rpx;
					display: flex;
					justify-content: center;
					align-items: center;
					background-color: #f8ece3;
					color: #f2873a;
					border-radius: 14rpx;
				}
			
				.btn-right {
					width: 48%;
					height: 80rpx;
					display: flex;
					justify-content: center;
					align-items: center;
					background-color: #f2873a;
					color: #ffffff;
					border-radius: 14rpx;
				}
				
				.btns {
					width: 100%;
					height: 80rpx;
					display: flex;
					justify-content: center;
					align-items: center;
					background-color: #f2873a;
					color: #ffffff;
					border-radius: 14rpx;
				}
			}
			
			.images_box {
				box-sizing: border-box;
			
				.phone {
					margin-bottom: 20rpx;
					border-bottom: #eee 1px solid;
					padding: 30rpx;
				}
			
				.image_box {
					margin-bottom: 30rpx;
			
					text {
						border-bottom: #eee solid 1px;
						padding: 20rpx 0;
						margin: 0;
					}
				}
			
				text {
					font-size: 32rpx;
					color: #1296db;
					text-align: center;
					display: block;
					margin-bottom: 30rpx;
					transition: all 0.5s;
				}
			
				text:active {
					background-color: #ebebeb;
				}
			}
		}
	}
</style>